package com.zhuimeng.Application.utils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class RoomCodeUtils {
    private static Map<String, String> codeMap = new ConcurrentHashMap<>();

    public static void putCode(String key, String code) {
        codeMap.put(key, code);
    }

    public static String getCode(String key) {
        return codeMap.get(key);
    }

    public static void removeCode(String key) {
        codeMap.remove(key);
    }
}
